﻿<%@ Page Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true" CodeBehind="MPInfo.aspx.cs"
    Inherits="RN.ERP.Web.Material.MaterialProperty.MPInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function OpenAlert(text) {
            $.ligerDialog.warn(text);
            return false;
        }
        $(function () {

            $(".return_a").click(function () {
                parent.window.CloseWin("0");
                window.parent.$.ligerDialog.close(); ////关闭dialog
                parent.$(".l-dialog,.l-window-mask").hide(); ////去除父窗体遮罩层
            });
        })
        function CloseWin() {
            parent.window.CloseWin("1");
            window.parent.$.ligerDialog.close(); ////关闭dialog
            parent.$(".l-dialog,.l-window-mask").hide(); ////去除父窗体遮罩层
        }
    </script>
    <style type="text/css">
        .IE6png
        {
            behavior: url("\Scripts\iepngfix.htc");
        }
        .text_css
        {
            border-style: none;
            border-color: inherit;
            border-width: 2px;
            line-height: 24px;
        }
        .icon_li
        {
            padding: 0px 20px;
            background: url(\images\icon_li.jpg) repeat-x;
            float: right;
        }
        .icon_li a
        {
            line-height: 48px;
            display: block;
            color: #936205;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
        }
        .icon_li a:hover
        {
            text-decoration: none;
        }
        .dbtype
        {
            padding-right: 15px;
            display: block;
            width: 85px;
            float: left;
            line-height: 22px;
            height: 22px;
        }
        #txtAreMemo
        {
            width: 329px;
            height: 139px;
        }
        #txtMPIInfo
        {
            width: 329px;
            height: 139px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hdnDate" runat="server" />
    <asp:HiddenField ID="hdnPid" runat="server" />
    <asp:HiddenField ID="hdnId" runat="server" />
    <asp:HiddenField ID="hdnType" runat="server" />
    <div id="page1">
        <table style="margin: 5px 0" width="100%">
            <tbody>
                <tr>
                    <td align="center">
                        <asp:LinkButton ID="LinkButton2" runat="server" OnClick="lbtnSave_Click" CssClass="btn-blue">保存</asp:LinkButton>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="table-wrapper">
            <table id="page1_block1" align="center" border="0" class="App_TableBlock" width="100%"
                cellspacing="0">
                <tbody>
                    <tr>
                        <td colspan="4" class="TableHeader">
                            基本信息
                        </td>
                    </tr>
                    <tr id="">
                        <td class="TableLabel" width="60" nowrap="">
                            <span title="" class="TableContent  ">物资属性类别</span>
                        </td>
                        <td class="TableData Width90">
                            <asp:TextBox ID="txtPName" CssClass="rn-input-text" runat="server"></asp:TextBox>
                            <asp:HiddenField ID="hdnPCode" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td width="40%" bgcolor="#f2f2f2">
                            <strong>物资属性名称</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtMPName" runat="server" CssClass="text_css" Width="60%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="40%" bgcolor="#f2f2f2">
                            <strong>是否用于查询检索</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:CheckBox ID="cbIsQuery" runat="server" Text="用于查询检索" /><br />
                            注：勾选此项表示在物资列表中可按照此属性检索。
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>数据录入方式</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:RadioButtonList ID="rbInput" runat="server" OnSelectedIndexChanged="rbInput_SelectedIndexChanged"
                                RepeatDirection="Horizontal" RepeatLayout="Flow" 
                                ontextchanged="rbInput_TextChanged">
                                <asp:ListItem Selected="True" Value="3">手工录入（单行）</asp:ListItem>
                                <asp:ListItem Value="4">多行文本框</asp:ListItem>
                                <asp:ListItem Value="1">单选（从下方可选值列表中填写）</asp:ListItem>
                                <asp:ListItem Value="2">多选（从下方可选值列表中填写）</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>可选值列表</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtMPIInfo" runat="server" TextMode="MultiLine" Enabled="False"
                                CssClass="rn-input-text"></asp:TextBox><br />
                            注：一行代表一个可选值。
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>备注</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtAreMemo" runat="server" TextMode="MultiLine" CssClass="rn-input-text"></asp:TextBox>
                        </td>
                    </tr>
                    <%--<tr>
                        <td bgcolor="#f2f2f2">
                            <strong>状态</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:DropDownList ID="drpListStatic" runat="server" Width="60%">
                                <asp:ListItem Selected="True" Value="0">有效</asp:ListItem>
                                <asp:ListItem Value="1">无效</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>创建人</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtCUName" runat="server" Width="60%" CssClass="text_css"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>创建时间</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtCDateTime" runat="server" Width="60%" CssClass="text_css" onclick="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>修改人</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtUPDate" runat="server" Width="60%" CssClass="text_css"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>修改时间</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtUDate" runat="server" Width="60%" CssClass="text_css"></asp:TextBox>
                        </td>
                    </tr>--%>
            </table>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top: 15px;">
                <tr>
                    <td width="100" style="text-align: center;">
                        <asp:LinkButton ID="LButSave" runat="server" CssClass="btn-blue" ValidationGroup="aa"
                            OnClick="lbtnSave_Click">保存</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <telerik:radwindowmanager id="RadWindowManager1" runat="server">
        </telerik:radwindowmanager>
        <asp:HiddenField ID="hidMPId" runat="server" />
    </div>
</asp:Content>
